package ${config.package_dao};

import java.util.List;
import org.apache.ibatis.annotations.Param;

import ${config.package_entity}.${table.class_name}${config.suffix_entity};

/**
 * <#if table.annotation??>${table.annotation}</#if>实体
 * @author ${config.author}
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 */
public interface ${table.class_name}${config.suffix_dao} {
    

	/**
	 * <#if table.annotation??>${table.annotation}</#if>列表查询
	 * @param ${StringUtil.firstFiledLower(name_entity)}
	 * @return
	 */
	List<${table.class_name}${config.suffix_entity}> select${table.class_name}List();
	
	/**
	 * <#if table.annotation??>${table.annotation}</#if>详情查询
	 * @param ${table.primary_key_field}
	 * @return
	 */
	${table.class_name}${config.suffix_entity} select${table.class_name}(@Param("${table.primary_key_field}") Integer ${table.primary_key_field});
	
	/**
	 * 新增<#if table_annotation??>${table_annotation}</#if>
	 * @param ${StringUtil.firstFiledLower(name_entity)}
	 * @return
	 */
	void insert${table.class_name}(${table.class_name}${config.suffix_entity} ${StringUtil.firstFiledLower(table.class_name)});
	
	/**
	 * 更新<#if table.annotation??>${table.annotation}</#if>
	 * @param ${StringUtil.firstFiledLower(table.class_name)}
	 * @return
	 */
	Integer update${table.class_name}(${table.class_name}${config.suffix_entity} ${StringUtil.firstFiledLower(table.class_name)});
	
}